package com.mbigger.client;

import com.unismc.client.GetCountryResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {
    @Autowired
    private WsClient wsClient;

    @RequestMapping("/callws")
    public Object callWs() {
        GetCountryResponse response = wsClient.getCountry("hello world");
        return response.getCountry();
    }
}
